home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / 5tinydms / gouraud.doc < prev    next >
Text File  |  1995-12-03  |  1KB  |  32 lines

  1.  
  2.     This is just a little example for Gema, featuring a Gouraud routine.
  3. It deals with any convex polygon ( with any number of points ) . Although it
  4. isn't that slow, this piece of code was not intended to be optimized at all,
  5. but for a didactive purpose.
  6.  
  7.     The points have to be in clockwise order. In other case, the polygon
  8. is not drawn, as it is supposed to be an hidden face.
  9.  
  10.     As the polygons are filled vertically, this routine can be easily
  11. modified to support a native X-mode. Just change the multiplication table
  12. ( multable ) and add some "out" to switch planes in "drawsegment" and it
  13. should be all right.
  14.  
  15.     Be careful if you use this routine in a EXE code, as the latest part
  16. is in a BSS section to reduce the executable size : don't forget to allocate
  17. some space for them ...
  18.  
  19.     This has been assembled by GEMA v2.5 without any extra option.
  20.  
  21.  
  22.                     That's all folks.
  23.                     Have fun.
  24.                     Borland sucks.
  25.                     Tekno rules.
  26.                     Stop nuclear tests.
  27.  
  28.  
  29.     Jedi / Sector One
  30.     E-Mail: j@nether.net - denis_r@epita.edu
  31.  
  32.